package com.hapzxb.provider.service;

import com.hapzxb.provider.bean.Department;

import java.util.List;

public interface DepartmentService {
    /**
     * 保存部门
     * @param department
     * @return
     */
    boolean saveDepartment(Department department);

    /**
     * 删除部门
     * @param id
     * @return
     */
    boolean removeDepartment(int id);

    /**
     * 修改部门
     * @param department
     * @return
     */
    boolean modifyDepart(Department department);

    /**
     * 根据id 查询部门
     * @param id
     * @return
     */
    Department getDepartmentById(int id);

    /**
     * 查询全部部门
     * @return
     */
    List<Department> listAllDepartment();
}
